//
//  Nav_BackHandler.swift
//  mall-ios
//
//  Created by Meak Tsui on 2018/12/6.
//  Copyright © 2018 Meak Tsui. All rights reserved.
//

import Foundation
import MTHybrid

class Nav_BackHandler: MTEventHandler {
    var ns: Ns {
        return .Nav
    }
    
    var action: Api {
        return .Back
    }
    
    func handler(_ msg: MTHybridMsg) {
        msg.vc.navigationController?.popViewController(animated: true)
        msg.callbackClosure?("null")
    }
}
